package com.ruoyi.otc.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.otc.domain.Personnel;
import com.ruoyi.otc.mapper.PersonnelMapper;
import com.ruoyi.otc.service.IPersonnelService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@DataSource(DataSourceType.SLAVE)
public class PersonnelServiceImpl extends ServiceImpl<PersonnelMapper, Personnel> implements IPersonnelService {

    private PersonnelMapper personnelMapper;


    @Override
    public List<Personnel> selectListByBazaarId(String bazaarId) {
        return personnelMapper.selectList(new QueryWrapper<Personnel>().eq("bazaar_id",bazaarId));
    }
}
